# coding: utf-8
from . import db, BaseModel


class Dictionary(db.Model):
    __tablename__ = 'dictionary'

    auto_id = db.Column(db.BigInteger, primary_key=True)
    dictionary_id = db.Column(db.Integer, info='词典id')
    dictionary_name = db.Column(db.String(255, 'utf8mb4_general_ci'), info='词典名')
    is_delete = db.Column(db.Integer, nullable=False, server_default=db.FetchedValue(), info='是否删除')
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='创建记录时间')
    update_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='更新记录时间')
